package demo.dcs.util;

/**
 * created by dongbo on 2019/11/1
 *
 * 获取时间工具
 */
public class TimeSpanUtil {


    public static long getTimeZone(long zoneSpan){
        long time = System.currentTimeMillis();
        return time - time % zoneSpan ;
    }

    public static void main(String[] args){
        System.out.println(getTimeZone(60000));
    }
}
